package com.zscat.mallplus.sms.entity;

import com.zscat.mallplus.pms.entity.PmsProduct;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zscat.mallplus.utils.BaseEntity;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;
import java.io.Serializable;
import java.util.List;

/**
* @author mallplus
* @date 2020-06-30

*/
@Data
@TableName("sms_pre_sale")
public class SmsPreSale extends BaseEntity implements Serializable {


            @TableId(value = "id", type = IdType.AUTO)
        private Long id;


    @TableField( "name")
    private String name;

    @TableField( "pic")
    private String pic;
            /**
            定金百分比
            **/
            @TableField( "percent")
        private Integer percent;


            /**
            尾款支付时间
            **/
            @TableField( "end_time")
        private Date endTime;


            /**
            促销描述
            **/
            @TableField( "demo")
        private String demo;


            /**
            活动商品
            **/
            @TableField( "goodsIds")
        private String goodsids;


    /**
     尾款支付时间
     **/
    @TableField( "create_time")
    private Date createTime;


    @TableField(exist = false)
    List<PmsProduct> productList;
}
